import {
    http,
    api,
    httpService
} from '@/common/http/index.js';
import qs from 'qs';

//查询商品信息
export const queryProductInfo = (params = {}) => {
    return http.post(api.queryProductInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}

//查询大分类下拉框数据
export const queryBigCategoryInfo = (params = {}) => {
    return http.post(api.queryBigCategoryInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}

//查询二级分类以后的数据
export const queryOtherCategoryInfo = (params = {}) => {
    return http.post(api.queryOtherCategoryInfo, qs.stringify(params), {
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        }
    });
}
